PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Application Scripting Errors

An application scripting error is an error returned by an application when handling standard AppleScript commands (commands that apply to all applications). Many of these errors, such as "The specified object is a property, not an element" , are of interest to users and should be handled. Developers can define new application errors in the -10,000 range for their applications.

Error number

Error message

-10000 Apple event handler failed.
-10001 A descriptor type mismatch occurred.
-10002 Invalid key form.
-10003 Can't set <object or data> to <object or data>. Access not allowed.
-10004 A privilege violation occurred.
-10005 The read operation wasn't allowed.
-10006 Can't set <object or data> to <object or data>.
-10007 The index of the event is too large to be valid.
-10008 The specified object is a property, not an element.
-10009 Can't supply the requested descriptor type for the data.
-10010 The Apple event handler can't handle objects of this class.
-10011 Couldn't handle this command because it wasn't part of the current transaction.
-10012 The transaction to which this command belonged isn't a valid transaction.
-10013 There is no user selection.
-10014 Handler only handles single objects.
-10015 Can't undo the previous Apple event or user action.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)